<?php

/**
 * DetalleTrabajo form.
 *
 * @package    laboratorio
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class DetalleTrabajoForm extends BaseDetalleTrabajoForm
{
  public function configure(){
    parent::configure();
    $this->widgetSchema['trabajo_id'] = new sfWidgetFormInputHidden();
    
    $this->widgetSchema['fecha_estado'] = new sfWidgetFormDateJQueryUI(array("change_month" => true, "change_year" => true, "default_value" => date("Y-m-d")));
    $this->validatorSchema['fecha_estado'] = new sfValidatorDate(array('date_format' => '~(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})~'));
  }

}
